//
//  OneControllerCell03.m
//  PosApp
//
//  Created by 刘萍 on 2018/8/31.
//  Copyright © 2018年 李英新. All rights reserved.
//

#import "OneControllerCell03.h"
#import "LYXPieChartView.h"
#import "StartView.h"

@interface OneControllerCell03 ()
@property (strong, nonatomic) LYXPieChartView * BingV;

@end

@implementation OneControllerCell03

- (void)setModel:(CellModel01 *)model {
    self.PosName.text = [NSString stringWithFormat:@"%@",model.pos_title];
    NSString * str = @"%";
    self.PosFL.text = [NSString stringWithFormat:@"费率%@%@",model.pos_rate,str];
}

-(void)CreateOneControllerCell03{
    self.BingV = [LYXPieChartView gradientProgressViewWithFrame:CGRectMake(0, 0, self.BTBackView.bounds.size.width, self.BTBackView.bounds.size.height) style:1 showTitle:YES animation:YES];
    self.BingV.gradientCGColors = @[(id)[UIColor colorWithRed:48/255.0 green:248/255.0 blue:255/255.0 alpha:1.0].CGColor,(id)[UIColor colorWithRed:121/255.0 green:197/255.0 blue:237/255.0 alpha:1.0].CGColor ];
    self.BingV.progress = 0.4;
    [self.BTBackView addSubview:self.BingV];
    [self.BingV startRendering];
    
    StartView *StartV = [[StartView alloc] initWithFrame:CGRectMake(0, 0, self.StartBackView.bounds.size.width, self.StartBackView.bounds.size.width/5)];
    StartV.center = CGPointMake(self.StartBackView.bounds.size.width/2, self.StartBackView.bounds.size.height/2);
    StartV.starBGColor = [UIColor colorWithWhite:0.85 alpha:1];
    StartV.starColor = [UIColor orangeColor];
    StartV.score = 8;
    [self.StartBackView addSubview:StartV];
    
    
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

@end
